/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.List;
/*    */ import java.util.Locale;
/*    */ import java.util.Map;
/*    */ import java.util.concurrent.ConcurrentHashMap;
/*    */ import net.minecraft.item.ItemStack;
/*    */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*    */ 
/*    */ public class pga
/*    */ {
/* 12 */   public static pga q = new pga();
/*    */   
/* 14 */   public Map<String, eos/moe/dragoncore/aca> g = new ConcurrentHashMap<>();
/*    */   
/*    */   public eos/moe/dragoncore/aca v(ItemStack itemStack) {
/* 17 */     if (itemStack.func_190926_b())
/* 18 */       return null; 
/* 19 */     if (this.g.size() == 0)
/* 20 */       return null; 
/* 21 */     String str = itemStack.func_77973_b().getRegistryName().func_110623_a().toLowerCase(Locale.ROOT);
/* 22 */     int i = itemStack.func_77960_j();
/* 23 */     str = str + ":" + i;
/*    */ 
/*    */     
/* 26 */     return this.g.get(str);
/*    */   }
/*    */   
/*    */   public void v(ConfigurationSection configurationSection) {
/* 30 */     eos/moe/dragoncore/aca eos/moe/dragoncore/aca = new eos/moe/dragoncore/aca(configurationSection);
/* 31 */     this.g.put(eos/moe/dragoncore/aca.v(), new eos/moe/dragoncore/aca(configurationSection));
/*    */   }
/*    */   
/*    */   public static class eos/moe/dragoncore/aca
/*    */   {
/*    */     private String w;
/*    */     private final String q;
/*    */     private final List<String> g;
/*    */     
/*    */     public eos/moe/dragoncore/aca(ConfigurationSection configurationSection) {
/* 41 */       this.w = configurationSection.getString("match", "unknown").toLowerCase(Locale.ROOT);
/*    */       
/* 43 */       if (!this.w.contains(":")) {
/* 44 */         this.w += ":0";
/*    */       }
/*    */       
/* 47 */       this.q = configurationSection.getString("name", "").replace("&", "§");
/* 48 */       this.g = configurationSection.getStringList("info");
/* 49 */       this.g.replaceAll(a -> a.replace("&", "§"));
/*    */     }
/*    */     
/*    */     public String z() {
/* 53 */       return this.q;
/*    */     }
/*    */     
/*    */     public List<String> v() {
/* 57 */       return this.g;
/*    */     }
/*    */     
/*    */     public String v() {
/* 61 */       return this.w;
/*    */     }
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\pga.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */